<layout name="layout"/>

<p>
<!-- Button trigger modal -->
<button type="button" class="uk-button uk-button-success" data-uk-modal="{target:'#myModal',center:true}">
{$Think.lang.add_new}
</button>
</p>

<form class="uk-form">

    <div class="uk-grid">
		<div class="uk-width-1-4">{$Think.lang.oid}:<input type="text" name="dv_oid" placeholder="" class="uk-width-1-1"></div>
        <div class="uk-width-1-4">{$Think.lang.delivery_no}:<input type="text" name="dv_number" placeholder="" class="uk-width-1-1"></div>
    </div>
	<p>
<button type="submit" class="uk-button uk-button-danger">搜索</button>
</p>
</form>

          <div class="uk-overflow-container">
            <table class="uk-table uk-table-hover uk-table-striped uk-table-condensed">
	<thead>
		<th>{$Think.lang.oid}</th>		<th>{$Think.lang.track_company}</th>		<th>{$Think.lang.track_url}</th>		
		<th>{$Think.lang.delivery_no}</th> <th>{$Think.lang.isflag}</th>		<th>{$Think.lang.add_time}</th>		<th>--</th>
	</thead>
	<tbody>
		<volist name="list" id="vo">
		<tr>
			<td><a href="__CONTROLLER__/details/{$vo.dv_id}">{$vo.dv_oid}</a></td><td>{$vo.tk_company}</td>
			<td>{$vo.tk_url}</td><td>{$vo.dv_number}</td><td>{$vo.dv_isflag|displayIcon}</td><td>{$vo.dv_time}</td><td>
				<a href="javascript:void(0)" onclick="confirmDelete('__CONTROLLER__/deleteHandle/{$vo.dv_id}')">
					<i class="uk-icon-trash"></i>
				</a>
			</td>
		</tr>
		</volist>
	</tbody>
</table>
</div>
{$page}

<!-- Modal -->
<div class="uk-modal" id="myModal">
 <form id="validate_form" class="uk-form"  method="post" action="__CONTROLLER__/addHandle">
    <div class="uk-modal-dialog"> <a class="uk-modal-close uk-close"></a>
        <div class="uk-modal-header">{$Think.lang.add_new}</div>

<table class="uk-table">
<tr><td  width=180>{$Think.lang.oid}</td><td>
<input type="text" name="dv_oid" required    value="{$dv_oid}" />
</td></tr>
<tr><td>{$Think.lang.track_company}</td><td>
<select name="dv_tk_id" required>
	<option value="">--</option>
	<volist name=":getTrackList()" id="vo">
	<option value="{$vo.tk_company}">{$vo.tk_company}</option>	
	</volist>	
</select>	
</td></tr>
<tr><td>{$Think.lang.delivery_no}</td><td>
<input type="text" name="dv_number"  value="{$dv_number}" required  />
</td></tr>
  </table>
        <div class="uk-modal-footer uk-text-right">
		<button class="uk-button uk-button-danger" type="submit">{$Think.lang.save}</button>
		</div>
    </div>
  </form> 
</div>